package net.hn.hnms.biz.api.plan;

import net.hn.hnms.biz.api.plan.model.CompletionRateVo;
import net.hn.hnms.biz.api.plan.model.ImportantRegionVo;
import net.hn.hnms.biz.api.plan.model.MonthYieldVo;
import net.hn.hnms.biz.api.plan.model.YearYieldVo;
import net.hn.hnms.sys.common.core.domain.R;
import org.springframework.stereotype.Component;

/**
 * Author: PanSX
 * Date: 2022/8/9 15:49
 */
@Component
public class RemotePlanInfoServiceFallback implements RemotePlanInfoService {
    @Override
    public R<String> currentDuty() {
        return R.fail("值班接口调用异常");
    }

    @Override
    public R<MonthYieldVo> yieldByMonth() {
        return R.fail("月产量情况接口调用异常");
    }

    @Override
    public R<YearYieldVo> yieldByYear() {
        return R.fail("年产量情况接口调用异常");
    }

    @Override
    public R<CompletionRateVo> completionRate() {
        return R.fail("月度计划/完成情况接口调用异常");
    }

    @Override
    public R<ImportantRegionVo> region() {
        return R.fail("重点区域接口调用异常");
    }

    @Override
    public R<CompletionRateVo> completionRateByYear() {
        return R.fail("年度计划/完成情况接口调用异常");
    }
}
